package com.question.service;

import com.question.pojo.dto.UserFavoriteQuestionDTO;
import com.question.pojo.vo.UserFavoriteQuestionVO;

import java.util.List;

public interface FavoriteService {

    /**
     * 添加取消收藏
     * @param questionId
     */
    void addOrCancel(Long questionId);

    /**
     * 用户收藏题目查询
     * @param favoriteQuestionDTO
     * @return
     */
    List<UserFavoriteQuestionVO> getMyFavoriteQuestions(UserFavoriteQuestionDTO favoriteQuestionDTO);
}
